#ifndef DVPCAM_H
#define DVPCAM_H

#include "DVPCamera.h"
#include <QMessageBox>
#include <QString>
#include <QDateTime>
#include <iostream>

#define m_uGrabTimeout 30000
#define FILEPATH "/media/nvidia/34B84591B8455292/"

class Dvpcam : public QObject
{
    Q_OBJECT
public:
    Dvpcam();
    ~Dvpcam();
    int dvpInit();
    int dvpQuit();
    int dvpSave();

    dvpFrame m_pFrame;                   // 采集到的图像的结构体指针

private slots:
    void dvpShotSlot();

signals:
    void dvpokSignal();

private:
    int index = 0;
    int cam_stat = 0;

    void *pBuffer;                    // 采集到的图像的内存首地址

    bool SoftTriggerFlag;

    QImage m_ShowImage;

    dvpHandle m_handle;
    dvpStatus status;
    dvpUint32 cam_count = 0;
    dvpCameraInfo cam_info;

};

#endif // DVPCAM_H
